package file;

import java.io.File;
import java.io.FileFilter;

public class FileDemoLa {
    public static void main( String[] args ){
        File file = new File("./src//file");
        File[] files = file.listFiles( pathname ->pathname.getName().endsWith(".txt"));
        for (File file1 : files) {
            System.out.println(file1.toString().substring(11));
        }
    }
}
